package com.xh.shuati.ai;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import reactor.core.publisher.Flux;

public interface AiService {

    @SystemMessage(fromResource = "system-prompt-chat.txt")
    String chat(@MemoryId Long memoryId,  @UserMessage String userMessage);

    @SystemMessage(fromResource = "system-prompt-chat.txt")
    Flux<String> chatStream(@MemoryId Long memoryId, @UserMessage String userMessage);

}
